#ifndef _DATA_UPDATE_H_
#define _DATA_UPDATE_H_
#include "./dataShare/include/ApplicationLayer.h"
#include "Util.h"
#include "mms_value.h"
#include "static_model.h"

#include <iec61850_model.h>
#include <memory>
#include <unordered_map>

class DataUpdate {
  public:
    DataUpdate();
    virtual ~DataUpdate();

    void Init();

    void Run();

  private:
    void Query();
    void Update();


  private:
    static bool                                         b_num;
    static std::unordered_map<std::string, std::string> varNameMap;
    std::shared_ptr<ApplicationLayer>                   appLayer;
};

#endif // !_DATA_UPDATE_H_
